class Shouyou(object):
    def __init__(self,xiejianxian,lixiaoyao,falan,falan_1):
        self.xiejianxian = xiejianxian
        self.lixiaoyao = lixiaoyao
        self.falan = falan
        self.falan_1 = falan_1

    def zhandou(self):
        print("xiejianxian") + str(self.xiejianxian)
        print("lixiaoyao" + str(self.lixiaoyao))
        print("xiejianxian falan" + str(self.falan))
        print("lixiaoyao falan" + str(self.falan_1))

    def HP(self,xueliang,xueliang_1,falan_2,falan_3):
        self.xiejianxian += xueliang
        self.lixiaoyao += xueliang_1
        self.falan += falan_2
        self.falan_1 += falan_3
        if self.falan <=0:
            self.falan = 0
            if self.falan_1 <= 0:
                self.falan_1 = 0


jiaose = Shouyou(1000,10000,5000,500)
print(jiaose.xiejianxian)
print(jiaose.lixiaoyao)
print(jiaose.falan)
print(jiaose.falan_1)


while jiaose.xiejianxian:
    jiaose.HP(-10,-100,-5,-50)
    jiaose.zhandou()
